//调用接口配置文件
import { request } from 'config/request'
import config from 'config/config'

//获取区域
export async function getProjectPermission(params) {
  return request({
      url: `${config.aheadPlan}system/login/getProjectPermission?userId=${params.userId}`,
      method: 'GET',
  });
};

 //获取城市
 export async function findByCity(params) {
  return request({
      url: `${config.aheadPlan}admin/competitorWeekly/competitorWeekly/findByCity`,
      method: 'GET',
      data: params,
  });
};
//发布
export async function changeStatus(params) {
  return request({
      url: `${config.aheadPlan}admin/groupMonth/groupMonth/changeStatus`,
      method: 'POST',
      data: params,
  });
};

  //编辑
  export async function editFun(params) {
    return request({
        url: `${config.aheadPlan}admin/monthlyPeport/monthlyPeport/updateStatus`,
        method: 'GET',
        data: params,
    });
  };
  export async function deleteFun(params) {
    return request({
        url: `${config.aheadPlan}/admin/monthlyPeport/monthlyPeport/delete`,
        method: 'GET',
        data: params,
    });
  };
// 导出
  export async function exportPdf(params) {
    return request({
        url: `${config.aheadPlan}admin/groupMonth/groupMonth/exportPdf?id=${params.id}`,
        method: 'POST',
    });
  };




